-
Notifications
You must be signed in to change notification settings - Fork 14
refactor: graph monitor & some handles #383
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| pub require_disproved_indexes: Vec<usize>, | ||
| pub commit_blockhash_status: CommitBlockHashStatus, | ||
| pub is_challenge_timeout_sent: bool, | ||
| pub is_challenge_timeout_sent: bool, // deprecated |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove it?
| @@ -296,25 +305,27 @@ impl WTInitTxVoutMonitorData { | |||
| .filter(|(_, v)| { | |||
| **v == WatchtowerChallengeItemStatus::Challenge | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use matches!.
| || self.commit_blockhash_status == CommitBlockHashStatus::OperatorCommitTimeout | ||
| } | ||
|
|
||
| pub fn check_watchtower_challenge_normal_finished(&self) -> bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check_watchtower_challenge_normal_finished => check_watchtower_challenge_finished
| return Ok(true); | ||
| } | ||
| if vout_monitor_data.is_disproved() { | ||
| let challenge_start_txid = graph.challenge_txid.clone().map(|v| v.into()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it needs .collect to get the result.
| false, | ||
| graph.graph_id, | ||
| None, | ||
| "self".to_string(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we change this to a global variable or an enum variable?
No description provided.